package com.serkan.conversion;

import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources.Theme;
import android.view.Menu;
import android.widget.Toast;

@SuppressLint("ShowToast")
public class MainActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		Thread th = new Thread() {

			@Override
			public void run() {
				try {
					super.run();
					sleep(5000);
				} catch (Exception e) {
					Toast.makeText(MainActivity.this,
							"Hata : " + e.getMessage(), RESULT_OK);
				} finally {
					startActivity(new Intent("com.serkan.MENU"));
				}
			}
		};
		th.start();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
}
